<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
    <title>CleanDream</title>
    
    <style type="text/css">
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/login.css");
        @import url('<?= Yii::app()->theme->baseUrl ?>/css/style_text.css');
        @import url('<?= Yii::app()->theme->baseUrl ?>/css/form-buttons.css');
        @import url('<?= Yii::app()->theme->baseUrl ?>/css/link-buttons.css');
        @import url('<?= Yii::app()->theme->baseUrl ?>/css/messages.css');
        @import url('<?= Yii::app()->theme->baseUrl ?>/css/forms.css');
    </style>
    
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery-1.6.2.min.js"></script>
    
    <!--[if lte IE 8]>
        <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/excanvas.min.js"></script>
    <![endif]-->
    
</head>

<body>

<div class="wrapper">
        
    <div class="box">
        <div class="container hide-input">
            <h1><a href="#"><?= Yii::app()->name ?></a></h1>
            <h2>Логин:</h2>
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'login-form',
    'enableClientValidation'=>true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
)); ?>
        <?php echo $form->textField($model,'username', array('class' => 'small')); ?>
        <?php echo $form->passwordField($model,'password', array('class' => 'small')); ?>
                <button type="submit" class="blue medium"><span>Войти</span></button>
<?php $this->endWidget(); ?>
            <div class="bottom">
                <div class="messages blue">
                    <span></span>
                    <?=$form->errorSummary($model)?>
        <?php echo $form->error($model,'username'); ?>
        <?php echo $form->error($model,'password'); ?>
        <?php if(Yii::app()->user->hasFlash('message')):?>
    <div class="info"><font color='red'>
        <?php echo Yii::app()->user->getFlash('message'); ?>
    </font></div>
<?php endif; ?>
                </div>
            </div>
        </div>
    </div>
    
</div>

<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/superfish.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/supersubs.js"></script>                                
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/hoverIntent.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.flot.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.graphtable-0.2.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery-ui.js"></script> 
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/customInput.jquery.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.tablesorter.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.sparkbox-select.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.fancybox-1.3.4.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.filestyle.mini.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/date.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.datepicker.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.treeview.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.tipsy.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/plugins/wysiwyg.rmFormat.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/controls/wysiwyg.image.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/controls/wysiwyg.link.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/controls/wysiwyg.table.js"></script>
<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/inline.js"></script>

</body>

</html> 